package com._520it.crm.mapper;

import com._520it.crm.domain.Account;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AccountMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Account record);

    Account selectByPrimaryKey(Long id);

    List<Account> selectAll();

    int updateByPrimaryKey(Account record);

    List<Account> selectPage(@Param("current") int current,
                             @Param("size") int size,
                             @Param("name") String name,
                             @Param("username") String username,
                             @Param("province") String province,
                             @Param("city") String city,
                             @Param("bank") String bank,
                             @Param("subBank") String subBank);

    int selectPageCount(@Param("current") int current,
                        @Param("size") int size,
                        @Param("name") String name,
                        @Param("username") String username,
                        @Param("province") String province,
                        @Param("city") String city,
                        @Param("bank") String bank,
                        @Param("subBank") String subBank);


}